if (!window.dialogArguments && fImage.description.length && fImage.description == description.value)
message('If you edit a caption in the Properties editor, any formatting you might have applied to the caption on the photo page is lost.', 'info', 'nof_qpgchangecaption', 8);
}
function applyToAll()
{
var sub = (currentTab1 ? '' : 'Tn');
getFromTab();
for (var i = 0; i < count; i++)
{
if (i == index)
continue;
selection.SetIndex(indices[i]);
var image = selection.GetField('Image');
var rotation = selection.GetField('ImageRotation') - 0;
var flags = selection.GetField('Image' + sub + 'Flags') - 0;
var quality = selection.GetField('Image' + sub + 'Quality') - 0;
var format = selection.GetField('Image' + sub + 'Format').toLowerCase();
if (format != currentImage.format || quality != currentImage.quality)
{
selection.SetField('Image' + sub + 'Quality', currentImage.quality);
selection.SetField('Image' + sub + 'Format', currentImage.format);
if ((flags & TABLE_GENERATED_MASK) != 0)
{
var width = selection.GetField('Image' + sub + 'Width') - 0;
var height = selection.GetField('Image' + sub + 'Height') - 0;
selection.SetField('Image' + sub + 'Flags', flags);
}
if (i == index)
{
if (currentTab == 2)
fDisplayImage.flags = flags;
else
fIndexImage.flags = flags;
}
}
}
selection.SetIndex(indices[index]);
}
function selectColor(o)
{
var color = app2.SelectNewColor(fIndexSettings.borderColor);
if (color != 0xffffffff)
{
o.style.backgroundColor = color;
fIndexSettings.borderColor = color;
}
}
function updateBorderWidth()
{
var w = borderwidth.value - 0;
if (isNaN(w))
w = 0;
else if (w < 0)
w = 0;
else if (w > 1000)
w = 1000;
borderwidth.value = w;
fIndexSettings.borderWidth = w;
}
function updateCellSpacing()
{
var w = cellspacing.value - 0;
if (isNaN(w))
w = 0;
else if (w < 0)
w = 0;
else if (w > 10000)
w = 10000;
cellspacing.value = w;
fIndexSettings.horizontalSpacing = w;
fIndexSettings.verticalSpacing = w;
}
function selectDisplayColor(o)
{
var color = app2.SelectNewColor(fDisplaySettings.borderColor);
if (color != 0xffffffff)
{
o.style.backgroundColor = color;
fDisplaySettings.borderColor = color;
}
}
function updateDisplayBorderWidth()
{
var w = displayborderwidth.value - 0;
if (isNaN(w))
w = 0;
else if (w < 0)
w = 0;
else if (w > 1000)
w = 1000;
displayborderwidth.value = w;
fDisplaySettings.borderWidth = w;
}
function helpFormat(o)
{
var oPopup = window.createPopup();
var oPopBody = oPopup.document.body;
oPopBody.style.backgroundColor = "lightyellow";
oPopBody.style.border = "solid black 1px";
oPopBody.innerHTML = "<table cellpadding=\"10\" cellspacing=\"0\" border=\"0\" width=\"100%\" height=\"100%\"><tr><td><font face='MS Sans Serif' size='-2'><b>Note:</b> If you specify formats and they do not appear in the text, it could be caused by the text style definitions, usually the definition of the Body and Normal(P) tags in the SiteStyle. For example, if the Body tag defines the font size, that definition overrides any font size you specify in the Object Format dialog. You can get around this by choosing a SiteStyle that does not define the property you want to set, or by formatting the individual photo titles.</font></td></tr></table>";